import 'package:flutter/material.dart';
class Test17 extends StatefulWidget{
    _TestState createState() => _TestState();
}

class _TestState extends State<Test17> {

  @override
  Widget build(BuildContext context) {

    return Container(
        decoration: BoxDecoration(
            image: DecorationImage(
                image: NetworkImage(
                    'https://img.zcool.cn/community/0372d195ac1cd55a8012062e3b16810.jpg'
                ),
                fit: BoxFit.cover
            )
        ),
        child: Scaffold(
            backgroundColor: Colors.transparent,
            appBar: AppBar(
                title: Text("沉浸式appbar"),
                centerTitle: true,
                backgroundColor: Colors.transparent,
                elevation: 0,
            ),
            body: Container(
                child: Text("沉浸式appbar"),
            ),
            
        ),
    );
  }


}
